package com.warm.base.design.s_composite;

/**
 * @Date: 2019/11/27 13:29
 * @Author: LChuang
 * @Description: 叶子节点
 */
public class Leaf extends Component{
    public Leaf(String name) {
        super(name);
    }

    @Override
    public String display() {
        System.out.println(this.name);
        return this.name;
    }
}
